---
title: Meter
description: A graphical display of a numeric value within a range.

links:
  doc: https://base-ui.com/react/components/meter#api-reference
---

<ComponentPreview name="p-meter-1" />

## Installation

<CodeTabs>

<TabsList>
  <TabsTab value="cli">CLI</TabsTab>
  <TabsTab value="manual">Manual</TabsTab>
</TabsList>
<TabsPanel value="cli">

```bash
npx shadcn@latest add @coss/meter
```

</TabsPanel>

<TabsPanel value="manual">

<Steps>

<Step>Install the following dependencies:</Step>

```bash
npm install @base-ui-components/react
```

<Step>Copy and paste the following code into your project.</Step>

<ComponentSource name="meter" title="components/ui/meter.tsx" />

<Step>Update the import paths to match your project setup.</Step>

</Steps>

</TabsPanel>

</CodeTabs>

## Usage

```tsx
import { Meter, MeterLabel, MeterValue } from "@/components/ui/meter"
```

```tsx
<Meter value={40}>
  <MeterLabel>Progress</MeterLabel>
  <MeterValue />
</Meter>
```

## Examples

### Without Label and Value

<ComponentPreview name="p-meter-2" />

### With Formatted Value

<ComponentPreview name="p-meter-3" />

### With Range

<ComponentPreview name="p-meter-4" />
